package org.lgiavedoni.android.franq.core.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import org.lgiavedoni.android.franq.core.dao.DaoObject;
import org.lgiavedoni.android.franq.service.config.ConfigService.ConfigKey;

@Data 
@EqualsAndHashCode(of={"key"})
@AllArgsConstructor
public class ConfigBean extends DaoObject implements Comparable<Object> {

	private final ConfigKey key;
	private String value;
	
	@Override
	public String toString(){
		return key.getName() + " = "+value;
	}
	 
	
	@Override
	public int compareTo(Object paramT) {
		return this.toString().compareTo(paramT.toString());
	}
	
	
}
